package XueXi;

import java.util.Scanner;

public class ScannerLX {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);//固定格式
        System.out.println("请输入年龄");
        int age = scanner.nextInt();
        System.out.println(age);
        System.out.println("请输入价格");
        double money = scanner.nextDouble();
        System.out.println(money);
        System.out.println("请输入字符串");
        String str = scanner.next();//获取控制台输入的字符串
        System.out.println(str);
    }
}
